Optimal. Leaf size=262 \[ \frac {c \left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \left (d+e x^2\right )^{1+q} \, _2F_1\left (1,1+q;2+q;\frac {2 c \left (d+e x^2\right )}{2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}\right )}{2 a \left (2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e\right ) (1+q)}+\frac {c \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \left (d+e x^2\right )^{1+q} \, _2F_1\left (1,1+q;2+q;\frac {2 c \left (d+e x^2\right )}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{2 a \left (2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e\right ) (1+q)}-\frac {\left (d+e x^2\right )^{1+q} \, _2F_1\left (1,1+q;2+q;1+\frac {e x^2}{d}\right )}{2 a d (1+q)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.37, antiderivative size = 262, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 5, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {1265, 974, 67,
844, 70} \begin {gather*} \frac {c \left (\frac {b}{\sqrt {b^2-4 a c}}+1\right ) \left (d+e x^2\right )^{q+1} \, _2F_1\left (1,q+1;q+2;\frac {2 c \left (e x^2+d\right )}{2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}\right )}{2 a (q+1) \left (2 c d-e \left (b-\sqrt {b^2-4 a c}\right )\right )}+\frac {c \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \left (d+e x^2\right )^{q+1} \, _2F_1\left (1,q+1;q+2;\frac {2 c \left (e x^2+d\right )}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{2 a (q+1) \left (2 c d-e \left (\sqrt {b^2-4 a c}+b\right )\right )}-\frac {\left (d+e x^2\right )^{q+1} \, _2F_1\left (1,q+1;q+2;\frac {e x^2}{d}+1\right )}{2 a d (q+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 67
Rule 70
Rule 844
Rule 974
Rule 1265
Rubi steps
\begin {align*} \int \frac {\left (d+e x^2\right )^q}{x \left (a+b x^2+c x^4\right )} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {(d+e x)^q}{x \left (a+b x+c x^2\right )} \, dx,x,x^2\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (\frac {(d+e x)^q}{a x}+\frac {(-b-c x) (d+e x)^q}{a \left (a+b x+c x^2\right )}\right ) \, dx,x,x^2\right )\\ &=\frac {\text {Subst}\left (\int \frac {(d+e x)^q}{x} \, dx,x,x^2\right )}{2 a}+\frac {\text {Subst}\left (\int \frac {(-b-c x) (d+e x)^q}{a+b x+c x^2} \, dx,x,x^2\right )}{2 a}\\ &=-\frac {\left (d+e x^2\right )^{1+q} \, _2F_1\left (1,1+q;2+q;1+\frac {e x^2}{d}\right )}{2 a d (1+q)}+\frac {\text {Subst}\left (\int \left (\frac {\left (-c-\frac {b c}{\sqrt {b^2-4 a c}}\right ) (d+e x)^q}{b-\sqrt {b^2-4 a c}+2 c x}+\frac {\left (-c+\frac {b c}{\sqrt {b^2-4 a c}}\right ) (d+e x)^q}{b+\sqrt {b^2-4 a c}+2 c x}\right ) \, dx,x,x^2\right )}{2 a}\\ &=-\frac {\left (d+e x^2\right )^{1+q} \, _2F_1\left (1,1+q;2+q;1+\frac {e x^2}{d}\right )}{2 a d (1+q)}-\frac {\left (c \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right )\right ) \text {Subst}\left (\int \frac {(d+e x)^q}{b+\sqrt {b^2-4 a c}+2 c x} \, dx,x,x^2\right )}{2 a}-\frac {\left (c \left (1+\frac {b}{\sqrt {b^2-4 a c}}\right )\right ) \text {Subst}\left (\int \frac {(d+e x)^q}{b-\sqrt {b^2-4 a c}+2 c x} \, dx,x,x^2\right )}{2 a}\\ &=\frac {c \left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \left (d+e x^2\right )^{1+q} \, _2F_1\left (1,1+q;2+q;\frac {2 c \left (d+e x^2\right )}{2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}\right )}{2 a \left (2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e\right ) (1+q)}+\frac {c \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \left (d+e x^2\right )^{1+q} \, _2F_1\left (1,1+q;2+q;\frac {2 c \left (d+e x^2\right )}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{2 a \left (2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e\right ) (1+q)}-\frac {\left (d+e x^2\right )^{1+q} \, _2F_1\left (1,1+q;2+q;1+\frac {e x^2}{d}\right )}{2 a d (1+q)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.60, size = 218, normalized size = 0.83 \begin {gather*} \frac {\left (d+e x^2\right )^{1+q} \left (\frac {c \left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \, _2F_1\left (1,1+q;2+q;\frac {2 c \left (d+e x^2\right )}{2 c d+\left (-b+\sqrt {b^2-4 a c}\right ) e}\right )}{2 c d+\left (-b+\sqrt {b^2-4 a c}\right ) e}+\frac {c \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \, _2F_1\left (1,1+q;2+q;\frac {2 c \left (d+e x^2\right )}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}-\frac {\, _2F_1\left (1,1+q;2+q;1+\frac {e x^2}{d}\right )}{d}\right )}{2 a (1+q)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.03, size = 0, normalized size = 0.00 \[\int \frac {\left (e \,x^{2}+d \right )^{q}}{x \left (c \,x^{4}+b \,x^{2}+a \right )}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (d + e x^{2}\right )^{q}}{x \left (a + b x^{2} + c x^{4}\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (e\,x^2+d\right )}^q}{x\,\left (c\,x^4+b\,x^2+a\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________